package com.chzc.fm.duotin.ui.home.utils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/7/2.
 */
public class HomePalyListDataList {

    /**
     * id : 87089
     * title : 105
     * album_id : 2913
     * duration : 00:24:26
     * display_order : 100055
     * play_num : 5499
     * audio_32_size : 11726505
     * audio_64_size : 11726505
     * audio_32_url : http://c202.duotin.com/M02/30/E6/wKgB3FRSmauANWNCALLuqRwI0_A276.mp3
     * audio_64_url : http://c202.duotin.com/M02/30/E6/wKgB3FRSmauANWNCALLuqRwI0_A276.mp3
     * image_url :
     * is_new : 0
     * is_collect : 0
     */

    private String id;
    private String title;
    private String album_id;
    private String duration;
    private String display_order;
    private String play_num;
    private String audio_32_size;
    private String audio_64_size;
    private String audio_32_url;
    private String audio_64_url;
    private String image_url;
    private int is_new;
    private int is_collect;

    public static HomePalyListDataList objectFromData(String str) {

        return new Gson().fromJson(str, HomePalyListDataList.class);
    }

    public static List<HomePalyListDataList> arrayHomePalyListDataListFromData(String str) {

        Type listType = new TypeToken<ArrayList<HomePalyListDataList>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(String album_id) {
        this.album_id = album_id;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getDisplay_order() {
        return display_order;
    }

    public void setDisplay_order(String display_order) {
        this.display_order = display_order;
    }

    public String getPlay_num() {
        return play_num;
    }

    public void setPlay_num(String play_num) {
        this.play_num = play_num;
    }

    public String getAudio_32_size() {
        return audio_32_size;
    }

    public void setAudio_32_size(String audio_32_size) {
        this.audio_32_size = audio_32_size;
    }

    public String getAudio_64_size() {
        return audio_64_size;
    }

    public void setAudio_64_size(String audio_64_size) {
        this.audio_64_size = audio_64_size;
    }

    public String getAudio_32_url() {
        return audio_32_url;
    }

    public void setAudio_32_url(String audio_32_url) {
        this.audio_32_url = audio_32_url;
    }

    public String getAudio_64_url() {
        return audio_64_url;
    }

    public void setAudio_64_url(String audio_64_url) {
        this.audio_64_url = audio_64_url;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public int getIs_new() {
        return is_new;
    }

    public void setIs_new(int is_new) {
        this.is_new = is_new;
    }

    public int getIs_collect() {
        return is_collect;
    }

    public void setIs_collect(int is_collect) {
        this.is_collect = is_collect;
    }
}
